package org.example.car.service.service.impl;


import org.example.car.service.domain.Battery;
import org.example.car.service.mapper.BatteryMapper;
import org.example.car.service.service.BatteryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Yanyanyu
 * @Date: 2024/6/29 10:54
 */
@Service
public class BatteryServiceImpl implements BatteryService {

    @Autowired
    private BatteryMapper batteryMapper;


    @Override
    public List<Battery> getList(Battery battery) {
        return batteryMapper.getList(battery);
    }

    @Override
    public boolean add(Battery battery) {
        return batteryMapper.add(battery);
    }

    @Override
    public boolean update(Battery battery) {
        return batteryMapper.update(battery);
    }

    @Override
    public boolean del(Integer batteryId) {
        return batteryMapper.del(batteryId);
    }

    @Override
    public void insertAll(List<Battery> batteryList) {
        batteryMapper.insertAll(batteryList);
    }
}
